export TEZ_HOME=/opt/module/tez-0.9.1
export TEZ_JARS=""

for jar in `ls $TEZ_HOME | grep jar`; do
    export TEZ_JARS=$TEZ_JARS:$TEZ_HOME/$jar
done

for jar in `ls $TEZ_HOME/lib`; do
    export TEZ_JARS=$TEZ_JARS:$TEZ_HOME/lib/$jar
done

export HIVE_AUX_JARS_PATH=/opt/module/hadoop-2.10.0/share/hadoop/common/hadoop-lzo-0.4.20.jar$TEZ_JARS